# coding=utf-8
from behave import *
from pages.login_page import LoginPage

@given('We visit IASO login page')
def step_open(context):
    context.page = LoginPage(context.browser)

@when('We check current current location')
def step_check_page(context):
    assert context.page.is_right_location


@then('Try login with username "{username}" and password "{password}"')
def step_set_values(context, username, password):
    login_page = context.page
    login_page.open()
    login_page.login(username, password)
